package com.gxt.riaapp.client.mvc;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;
import com.gxt.riaapp.client.AppEvents;

public class SmplController extends Controller {
	private SmplView appView;
	public SmplController() {
		appView = new SmplView(this);
		System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		registerEventTypes(AppEvents.SmplEvent1); // 등록과 동시에 handleEvent메소드 호출
	}
	@Override
	public void handleEvent(AppEvent event) {
		if (event.getType() == AppEvents.SmplEvent1) { // 호출시 전달된 이벤트가 Init라면 
			forwardToView(appView, event);
		}
	}
}
